package com.example.demospringretry.command;

import com.example.demospringretry.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class TestCommandLineRunner implements CommandLineRunner {

    @Autowired
    private TestService testService;

    @Override
    public void run(String... args) throws Exception {
        testService.service(UUID.randomUUID().toString(), UUID.randomUUID().toString());
    }
}
